/*******************************************************************
 *
 * Copyright (C), 2021-2022, LS, All rights reserved.
 *
 * Author      : 
 * Create Time : 2020-11-02
 * Version     : v0.1
 * Description : 
 *******************************************************************/
#ifndef _HAL_DISPLAY_H_
#define _HAL_DISPLAY_H_

/*----------------------------Head file----------------------------*/
#include "stdint.h"
#include "stdbool.h"

/*----------------------------macro file---------------------------*/

/*----------------------------type define--------------------------*/

/*--------------------------var declarative------------------------*/

/*-------------------------func declarative------------------------*/
extern bool hal_disp_init_state_get(void);
extern void hal_disp_send_block(const uint8_t *data, int len);
extern void hal_disp_send_noblock(const uint8_t *data, int len);
extern void hal_disp_gpio_drv_init(void);
extern void hal_disp_gpio_drv_deinit(void);
extern void hal_disp_spi_drv_init(void);
extern void hal_disp_spi_drv_deinit(void);

extern void hal_disp_set_pwr_pin(bool enable);
extern void hal_disp_set_dc_pin(bool enable);
extern void hal_disp_set_reset_pin(bool enable);
extern void hal_disp_set_backlight_pin(bool enable);
extern bool hal_disp_backlight_state_get(void);

/*-----------------------------------------------------------------*/

#endif // _HAL_DISPLAY_H_

